# $Id: PKGBUILD 67701 2012-03-14 02:44:37Z ebelanger $
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=gutenpy
pkgver=0.3.0
pkgrel=9
pkgdesc="A text reader and catalog browser for Project Gutenberg"
arch=('any')
url="http://gutenpy.sourceforge.net"
license=('GPL')
depends=('pygtk')
source=(http://downloads.sourceforge.net/sourceforge/gutenpy/gutenpy-${pkgver}.zip gutenpy.desktop)
sha1sums=('f9f7fd7823447266eabacd0befda4e52bd97c79c'
          'f741244fef917bd64cf337bbffb3c7cd91e6b12e')

package() {
  cd "${srcdir}/gutenpy-${pkgver}"
  cp ../gutenpy.desktop .
  python2 setup.py install --root="${pkgdir}"
  chmod 644 "${pkgdir}"/usr/share/{doc,pixmaps}/gutenpy/*
  ln -s gutenpy/gutenpy.xpm "${pkgdir}/usr/share/pixmaps/gutenpy.xpm"
  ln -s gutenpy.py "${pkgdir}/usr/bin/gutenpy"
}
